package com.dongdongshop.serviceImpl;

import com.dongdongshop.mapper.TbCitiesMapper;
import com.dongdongshop.pojo.TbCities;
import com.dongdongshop.service.TbCitiesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@com.alibaba.dubbo.config.annotation.Service
public class TbCitiesServiceImpl implements TbCitiesService {
    @Autowired
    private TbCitiesMapper tbCitiesMapper ;
    @Override
    public List<TbCities> selectByCity(String city) {
          List<TbCities>tbCitiesList = tbCitiesMapper.selectByCity(city);
        return tbCitiesList;
    }

    @Override
    public TbCities selectGetCityName(String city) {
         TbCities cities = tbCitiesMapper.selectGetCityName(city);
        return cities;
    }
}
